<?php
include "./libs/Smarty.class.php";
include 'fn.php';
$smarty=new Smarty;
$smarty->template_dir="template";
$smarty->compile_dir="compile";
$smarty->left_delimiter="{h:";
$smarty->right_delimiter="}";
$arr = array('user' =>"张花",'age'=>18);
$arr1 = array('user' =>"徐晓青",'age'=>58);
$smarty->assign("wen",$arr);
$smarty->assign("wennname","www.HD108.com good");
$smarty->assign("mingzi",$arr1);
$smarty->assign("bianliang","这是变量调节器的扩展");







$smarty->display("index.html");
?>